home *** CD-ROM | disk | FTP | other *** search
-
- /*
- There may be additional include files required depending
- upon the compile product you are using. Typical compilers
- include Microsoft C by Microsoft or Turbo C by Boland Int'l.
- */
- #include <stdio.h>
- main()
- {
- static char hello[] = "Hi there";
-
- printf("%s\n",hello);
- printarray(hello);
- printf("%s\n",hello);
- }
- printarray(string)
- char *string;
- {
- int i;
- for(i=0; *string != '\0'; i++){
- printf("%c",*string);
- *string = 'X' ;
- string++;
- }
- printf("\n");
- }
-